<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<title>ITLibrary</title>
	<link rel="stylesheet" href="../layui/css/layui.css">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
	<div class="layui-header">
		<div class="layui-logo">ITLibrary</div>
		<!-- 头部区域（可配合layui已有的水平导航） -->
		<ul class="layui-nav layui-layout-left">
			<li class="layui-nav-item"><a href="/books">首页</a></li>
		</ul>
		<ul class="layui-nav layui-layout-right">
			<li class="layui-nav-item layui-this">
				<a href="">我的借阅<span class="layui-badge">${borrowList?size}</span></a>
			</li>
		</ul>
	</div>

	<div class="layui-side layui-bg-black">
		<div class="layui-side-scroll">
			<!-- 左侧导航区域（可配合layui已有的垂直导航） -->
			<ul class="layui-nav layui-nav-tree"  lay-filter="test">
				<li class="layui-nav-item layui-this" style="text-align:center"><a href="">借阅历史</a></li>
			</ul>
		</div>
	</div>

	<!-- 内容主体区域 -->
	<div class="layui-body">
		<div class="layui-container">
			<div class="layui-text" style="padding-top: 20px">
				借阅时间：2020-07-01
			</div>

			<table class="layui-table" style="margin-bottom:10px">
				<thead>
				<tr>
					<th>编号</th>
					<th>编码</th>
					<th>名称</th>
					<th>数量</th>
					<th>状态</th>
					<th>日期</th>
					<th>操作</th>
				</tr>
				</thead>
				<tbody>
				<#list borrowList as borrow>
				<tr>
					<td>${borrow_index+1}</td>
					<td>${borrow.code}</td>
					<td>${borrow.name}</td>
					<td>1</td>
					<td>${borrow.status}</td>
					<td>${borrow.date?string("yyyy-MM-dd")}</td>
					<td>
						<button type="button" class="layui-btn layui-btn-primary layui-btn-sm">图书详情</button>
					</td>
				</tr>
				</#list>
				<#--<tr>
				<td>1</td>
				<td>7bba9edad972413c</td>
				<td>python基础</td>
				<td>1</td>
				<td>未还</td>
				<td>
					<button type="button" class="layui-btn layui-btn-primary layui-btn-sm">图书详情</button>
				</td>
			</tr>
				<tr>
					<td>2</td>
					<td>7bba9edad972413c</td>
					<td>python基础</td>
					<td>1</td>
					<td>未还</td>
					<td>
						<button type="button" class="layui-btn layui-btn-primary layui-btn-sm">图书详情</button>
					</td>
				</tr>-->
				</tbody>
			</table>
		</div>
	</div>

	<!-- 底部固定区域 -->
	<div class="layui-footer" style="text-align:center">
		©www.jwkt.net 版权所有
	</div>
</div>

<script src="../layui/js/jquery.min.js"></script>
<script src="../layui/layui.js"></script>
<script>
	//JavaScript代码区域
	layui.use(['element', 'form', 'laypage'], function(){
		var element = layui.element,
				laypage = layui.laypage,
				form = layui.form;

		laypage.render({
			elem: 'pagination',
			count: 50,
			limit: 12,
			curr: 2
		});
	});
</script>
</body>
</html>